<?php
$this->page_breadcrumb = array(
    'System' => array('/system'),
    'Auth' => array('/system/auth'),
    'Role');

$this->page_menu = array(     
    array(
        'title' => sterm_get('system.auth.role.index.menu.create'),
        'link' => array('/system/auth/roleCreate'),
        'icon' => 'plus'
    ),   
);

$grid = new application\system\library\simgrid\WidgetSimGrid("system_authRole_list");
$grid->setTitle(sterm_get('system.auth.role.index.table.title'));
$grid->setTableCss('table-condensed table-hover');
$grid->setDataSource("system", "auth", "role");
$grid->setColumns(array(
    	"title" => "Role",
	"type" => "Type",
	"description" => "Description",
    "Actions",
));
$grid->setActions(array(
    shtml_action_link("open", array('system/auth/roleView[title:{{title}}]'), array('class' => 'btn btn-default btn-xs')),
));

echo $grid->getDisplayData();
?>